/*
 * Data Mashup Canonical Model. A canonical model for representing data mashups
 * Copyright (C) 2011 Carlos Rodriguez
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

package eu.ict_omelette.mashup.canonicalmodel;

import java.io.Serializable;

/**
 *
 * @author Carlos Rodriguez
 */
public class InputParameter implements Serializable, Cloneable {
    private String name;
    private String type;
    private String value;
    private String dataMapping;

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the type
     */
    public String getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }

    /**
     * @param value the value to set
     */
    public void setValue(String value) {
        this.value = value;
    }

    /**
     * @return the dataMapping
     */
    public String getDataMapping() {
        return dataMapping;
    }

    /**
     * @param dataMapping the dataMapping to set
     */
    public void setDataMapping(String dataMapping) {
        this.dataMapping = dataMapping;
    }


    @Override
    public Object clone(){
        try{
            InputParameter ip = new InputParameter();
            ip.setDataMapping(this.dataMapping);
            ip.setName(this.name);
            ip.setType(this.type);
            ip.setValue(this.value);

            return ip;
            
        }catch(Exception e){
            return null;
        }
    }

}
